//
//  WYCCardAuthenticationController.m
//  51信用卡
//
//  Created by 中企互联 on 2018/1/2.
//  Copyright © 2018年 中企互联. All rights reserved.
//

#import "WYCCardAuthenticationController.h"

@interface WYCCardAuthenticationController ()
/** 输入框*/
@property(nonatomic,strong)UITextField * codeField;

@end

@implementation WYCCardAuthenticationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setupNavButton];
    
    [self setupCreat];
    
}
- (void)setupCreat{
    
    UILabel * cardlabel = [[UILabel alloc] init];
    cardlabel.frame = CGRectMake(80 * px, NavHeight + 80 * px, ScreenWidth / 2, 60 * px);
    cardlabel.text = self.cardstr;
    [self.view addSubview:cardlabel];
    
    UIView * cardView = [[UIView alloc] init];
    cardView.frame = CGRectMake(80 * px, CGRectGetMaxY(cardlabel.frame) + 40 * px, ScreenWidth - 160 * px, 0.5);
    cardView.backgroundColor = WYCGlobalBg;
    [self.view addSubview:cardView];
    
    self.codeField = [[UITextField alloc] init];
    self.codeField.placeholder = @"请输入验证码";
    self.codeField.frame = CGRectMake(cardlabel.x, CGRectGetMaxY(cardView.frame)+ 40 * px, cardlabel.width, 60 * px);
    [self.view addSubview:self.codeField];
    
    
    UIView * codeFieldView = [[UIView alloc] init];
    codeFieldView.frame = CGRectMake(80 * px, CGRectGetMaxY(self.codeField.frame) + 40 * px, ScreenWidth - 160 * px, 0.5);
    codeFieldView.backgroundColor = WYCGlobalBg;
    [self.view addSubview:codeFieldView];
}
//Nav按钮及颜色
- (void)setupNavButton{
    self.navigationItem.title = @"信用卡认证";
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
    [self.navigationController.navigationBar setBarTintColor:wycMain];
}

@end
